-- GENERATED SPELL FOR [McGoyver] --


function spell0_24040(pUnit, Event) --@Taxi to Explorers\' League,n/a--
pUnit:FullCastSpellOnTarget(44280,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24040', 680, 1)
end

function Sorts_24040(pUnit, Event)
local choix_sorts_24040 = math.random(0, 0)
if choix_sorts_24040 == 0 then
pUnit:RegisterEvent('spell0_24040', 1, 1)
end
end

function mob24040_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24040', math.random(1500, 3000), 1)
end

function mob24040_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24040_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24040_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24040, 1, 'mob24040_Action')
RegisterUnitEvent(24040, 2, 'mob24040_Leave')
RegisterUnitEvent(24040, 3, 'mob24040_Kill')
RegisterUnitEvent(24040, 4, 'mob24040_Die')
